import service from '@/utils/request'

const DeliveryModelApi = {
    listDeliveryModel:function(data){
        return service.get('deliveryModel/page', {params:data})
      },
    addDeliveryModel:function(data){
        return service.post('deliveryModel', data)
    },
    editDeliveryModel:function(data){
        return service.put('deliveryModel', data)
    },
    deleteDeliveryModel:function(data){
        return service.put('deliveryModel/delete', data)
    },
    getDeliveryModelInfo(data){
        return service.get('deliveryModel', {params:data})
    },
    getRelationByBusiness:function(data){
        return service.get('deliveryModelVillage/getRelationByBusiness', {params:data})
    },
    setRelation(data){
        return service.put('deliveryModelVillage/setRelation', data)
    },
    listIdName(data){
        return service.get('deliveryModel/listIdName', {params:data})
      },
}

export default DeliveryModelApi
